package com.kuang.blog.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.kuang.blog.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 狂神说
 * @since 2022-09-22
 */
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 查询用户id显示订单列表
     *
     * @param userId 用户id
     * @return {@link List}<{@link Order}>
     */
    List<Order> selectAllByUserId(@Param("userId") String userId);
}
